package com.xc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.domain.AjaxResult;
import com.xc.domain.pojo.SysUserRole;
import com.xc.service.SysUserRoleService;
import com.xc.mapper.SysUserRoleMapper;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole>
    implements SysUserRoleService{

    @Override
    public void add(SysUserRole sysUserRole) {
        this.baseMapper.insert(sysUserRole);
    }

    @Override
    public void upd(SysUserRole sysUserRole) {
        this.baseMapper.updateById(sysUserRole);
    }

    @Override
    public void del(Long postId) {
        this.baseMapper.deleteById(postId);
    }
}




